#!/bin/sh
# Post-installation script for Funny

set -e

echo "正在安装 Funny 终端动画工具..."

# 确保二进制文件可执行
chmod +x /usr/local/bin/funny 2>/dev/null || true

# 添加到 PATH（如果需要）
if ! echo "$PATH" | grep -q "/usr/local/bin"; then
    echo "提示: /usr/local/bin 不在 PATH 中，您可能需要手动添加"
fi

echo ""
echo "✓ Funny 安装成功！"
echo ""
echo "使用方法："
echo "  funny -help        # 查看帮助"
echo "  funny -hack        # 黑客帝国数字雨"
echo "  funny -love        # 爱心雨"
echo "  funny -train       # 小火车"
echo "  funny -csgo        # CS:GO对峙"
echo ""
echo "完整文档: /usr/share/doc/funny/README.md"
echo ""

exit 0

